//
//  UIView+XJCategory.h
//  TranslateSoftware
//
//  Created by boniu on 2022/5/9.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (XJCategory)

+ (UIWindow *)getCurrentWindos;
//返回当前view 相对 win 的位置
- (CGRect)getToWinPoint;

//单击
- (void)addTapGesture:(nullable id)target action:(SEL)action;
//双击
- (void)addTapGesture2:(nullable id)target action:(SEL)action;
//长按
- (void)addTapLongGesture:(nullable id)target action:(SEL)action;



//圆角
- (void)setCornerRadius:(CGFloat)size;
//指定的圆角
- (void)setCornerRadiusCustom:(UIRectCorner)corners size:(CGFloat)size;
//描边
- (void)setBorder:(CGFloat)size color:(UIColor *)color;

//设置阴影
- (void)setShadowColor:(UIColor *)color;
//设置阴影
- (void)setShadowColor1:(UIColor *)color;
//设置阴影
- (void)setShadowColor2:(UIColor *)color;
@end

NS_ASSUME_NONNULL_END
